package com.hjw.dao;

import com.hjw.entity.Cart;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * @author 64207
 * @description
 * @date 2020/6/3 11:02
 */
public interface CartDao {
    List<Cart> findAll();
    Cart findById(Integer id);
    List<Cart> findByUid(Integer uid);
    int add(Cart cart);
    int delete(Integer id);
    int update(@Param("uid")Integer uid, @Param("id") Integer id, @Param("num") Integer num);
}
